package me.fung.wubi.resource

import java.io.File

/**
 * 本地磁盘上文件
 */
object LocalResource {
    fun dir(path: String): String {
        val filename = if (path.startsWith(File.separator)) path else "${File.separator}$path"
        return System.getProperty("user.dir") + filename
    }

    fun file(path: String): File {
        return File(dir(path))
    }
}

